package org.example.config;

/**
 * @description:
 * @author: 谢超
 * @date: 2024/8/19 15:15
 */
public class WechatPayApiConfig {

    /**
     * 微信支付的主机地址
     */
    public static final String HOST = "https://api.mch.weixin.qq.com";

    /**
     * Native下单地址
     */
    public static final String NATIVE_ORDER = HOST + "/v3/play/transactions/native";

    /**
     * Native 订单状态查询
     */
    public static final String NATIVE_QUERY = HOST + "/v3/pay/transactions/out-trade-no/%s?mchid=%s";

    /**
     * 关闭订单接口
     */
    public static final String NATIVE_CLOSE_ORDER = HOST + "/v3/pay/transactions/out-trade-no/%s/close";

    /**
     * 申请退款接口
     */
    public static final String NATIVE_REFUND_ORDER = HOST + "/v3/refund/domestic/refunds";

    /**
     * 申请退款状态查询
     */
    public static final String NATIVE_REFUND_QUERY = HOST + "/v3/refund/domestic/refunds/%s";
}
